<template>
    <div class="header clearBoth">
        <div class="header-body">
            <div class="inline-block">
                <img :src="logoRed">
            </div>
            <div class="inline-block menu">
                <ul>
                    
                    <li @click="handleSelect(0)" :class="menuIndex == 0 ? 'active' : ''">
                        Offline Interaction
                    </li>

                    <li @click="handleSelect(1)" :class="menuIndex == 1 ? 'active' : ''">
                        Illustration
                    </li>

                    <li @click="handleSelect(2)" :class="menuIndex == '2' ? 'active' : ''">
                        Design
                    </li>

                    <li @click="handleSelect(3)" :class="menuIndex == 3 ? 'active' : ''">
                        Video
                    </li>
                    
                </ul>
            </div>
        </div>
    </div>
</template>
<script>

import logoRed from '@/assets/images/logo_red.png';
export default {
    data() {
        return {
            menuIndex: 3,
            logoRed:logoRed
        }
    },
    methods: {
        toggle() {
            
        },
        handleSelect(index) {
            this.menuIndex = index
        }
    }
}
</script>
<style lang="less" scoped>
.header {
    padding: 0rem 1.21rem 0 1.21rem;
    position: relative; 
    background-color: #fcfeff;
}

.header-body{
    width: 100%;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    align-items:center;
}

.header .inline-block {
    margin-top: 0.09rem;
    margin-bottom: 0.2rem;
    display: inline-block;
}

.header .inline-block img{
    width:100%;
}

.header .menu{
    // margin-top: 0px;
}

.header .menu ul:after {
    clear: both;
    display: table;
    content: "";
}

.header .menu ul li {
    display: list-item;
    text-align: -webkit-match-parent;
    float: right;
    list-style: none;
    font-size: .18rem;
    margin: 0 .1rem 0 1.45rem;
    // padding: 0 .1rem 0 .1rem;
    cursor: pointer;
}
.header .menu ul li.active {
    border-bottom: 3px #e72119 solid;
    padding-bottom: 2px;
}

.header .menu ul li:first-child{
    margin-right: 0;
    padding-right: 0;
}

@media screen and (max-width: 768px) {

    .header{
        padding: 0rem 0.8rem 0 0.8rem;
    }

    .header-body .inline-block img{
        width:0;
    }

    .header-body .menu{
        width: 100%;
        height: 50px;
    }

    .header-body .menu ul li{
        margin: 0 0.1rem 0 .1rem;
        height: 30px;
        line-height: 50px;
    }
}
</style>>
